package com.ruoyi.iotcommon.constant;

public class MqttTopicConstant {

    /**
     * 服务器给设备下发指令
     */
    public static final String SERVICE_INVOKE = "/sys/${productKey}/${deviceKey}/thing/service/${channelKey}/set";

    /**
     * 设备收到指令后的执行结果给服务器回复回复
     */
    public static final String SERVICE_INVOKE_REPLY = "/sys/${productKey}/${deviceKey}/thing/service/${channelKey}/set_reply";

    /**
     * 设备上报数据，其他数据，比如调试数据，等等自定义
     */
    public static final String EVENT_POST = "/sys/${productKey}/${deviceKey}/thing/event/${channelKey}/post";

    /**
     * 设备上报数据,服务器回复
     */
    public static final String EVENT_POST_REPLY = "/sys/${productKey}/${deviceKey}/thing/event/${channelKey}/post_reply";

    /**
     * 上报固件版本
     */
    public static final String OTA_INFORM_POST = "/sys/${productKey}/${deviceKey}/thing/ota/inform";

    /**
     * 下发固件升级指令
     */
    public static final String OTA_UPGRADE = "/sys/${productKey}/${deviceKey}/thing/ota/upgrade";

    /**
     * 通配符监听所有设备上报topic
     */
    public static final String DEFAULT_TOPIC = "/sys/+/+/thing/event/+/post";
    
}
